﻿using System.Collections.Generic;
using System.Data;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Input;
using Template;
using DynaCAD;
using DynaCAD.ConfExpertDataSetTableAdapters;

namespace Karbel
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Sablonlar : Window
    {
        public Sablonlar()
        {
            InitializeComponent();
        }

        public ReferanceTemplate Sablon { get; set; }

        private void gc_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            List<ReferanceTemplate> list = new List<ReferanceTemplate>();

            int[] rows = gc.GetSelectedRowHandles();
            DataRow dr = ((DataRowView)gc.GetRow(rows[0])).Row;

            Sablon = Karbel.Data.GetSablon(dr);

            this.Close();
        }
    }
}
